/**
 * @(#)OrderFactory.java, 2018/5/24
 * <p/>
 * Copyright 2018 Netease, Inc. All rights reserved.
 * NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.chengzhi.netty.http.xml;

/**
 * @author 阮承志(wb.ruanchengzhi @ mesg.corp.netease.com)
 **/
public class OrderFactory {
	public static Order create(long orderId) {
		Order order = new Order();
		order.setOrderNumber(orderId);
		order.setTotal(99.99f);
		Address address = new Address();
		address.setCity("nanjingshi");
		address.setCountry("zhongguo");
		address.setPostCode("4969687");
		address.setState("jiangsusheng");
		address.setStreet1("longmiandadao");
		order.setBillto(address);
		Customer customer = new Customer();
		customer.setCustomerNumber(orderId);
		customer.setFirstName("zhang");
		customer.setLastName("san");
		order.setCustomer(customer);
		order.setShipping(Shipping.INTERNATIONAL_MAIL);
		order.setShipTo(address);
		return order;
	}
}
